package com.boarsoft.boar.demo.product.service;

import com.boarsoft.boar.demo.product.entity.PocProduct;
import com.boarsoft.cache.aop.Cached;

/**
 * @ClassName: productService
 * @Description:产品服务
 * @author:
 * @date: 2019年2月15日 上午9:50:59
 * 
 * @Copyright: 2019
 */
public interface PocProductService {
	/**
	 * @Title: add @Description: 新增产品 @param: product @return: boolean @throws
	 */
	public boolean add(PocProduct product);

	/**
	 * @Title: update @Description: 更新产品信息 @param: product @return:
	 *         boolean @throws
	 */
	public boolean update(PocProduct product);

	/**
	 * @Title: find @Description: 查找产品 @param: productId @return:
	 *         product @throws
	 */
	@Cached(group = "product", index = 0)
	PocProduct get(int id);
}
